import React,{Component} from "react";

class Child extends Component<{},{nickname:string}>{
    state={
        nickname:'无心'
    }
    render(): React.ReactNode {
        return(
            <fieldset>
                <legend>子组件</legend>
                <h1>一个朴实无华的子组件</h1>
            </fieldset>
        )
    }
}

export default Child